#include "TextWriter.h"




TextWriter::TextWriter(tstring filename):m_FileName(filename)
{
}

void TextWriter::Open()
{
	m_Output.open(m_FileName.c_str());
}

void TextWriter::Close()
{
	m_Output.close();
}

void TextWriter::WriteString(tstring& value)
{
	m_Output << value.c_str();
}
void TextWriter::WriteFloat(float value){
	m_Output << value;
}

void TextWriter::WriteInt(int value){
	m_Output << value;
}

void TextWriter::WriteEndl(){
	m_Output << endl;
}

TextWriter::~TextWriter(void)
{
}
